/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: UserMapper
 * Author:   kadibeieun
 * Date:     2019/8/8 11:35
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.mengde.dao;

import com.mengde.entity.SelfUserDetails;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author kadibeieun
 * @create 2019/8/8
 * @since 1.0.0
 */
@Mapper
public interface UserMapper {
    /**
     * 通过username查询用户
     * @param username
     * @return
     */
    SelfUserDetails getUser(@Param("username") String username);


    int insert(@Param("username")String username, @Param("password")String password);
}